package com.koro.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.koro.annotation.Column;
import com.koro.annotation.ColumnComment;
import com.koro.annotation.Table;
import com.koro.annotation.TableComment;
import com.koro.constants.MySqlTypeConstant;
import lombok.Data;

@Data
@TableName("t_users")
@Table(name = "t_users")
@TableComment("用户")
public class Users {

    @TableId(value = "id",type = IdType.AUTO)
    @Column(name = "id",type = MySqlTypeConstant.INT,isKey = true,isAutoIncrement = true)
    @ColumnComment(value = "账号id")
    private Integer id;

    @Column(name = "username",type = MySqlTypeConstant.VARCHAR,length = 100)
    @ColumnComment(value = "用户名称")
    private String username;

    @Column(name = "password",type = MySqlTypeConstant.VARCHAR,length = 100)
    @ColumnComment(value = "密码")
    private String password;

    @Column(name = "type",type = MySqlTypeConstant.INT,length = 1)
    @ColumnComment(value = "用户类型：0，系统用户；1，普通用户")
    private Integer type;

}
